/*
 * Filename: g:\espidf_workspace\idf_S3_T-Watch\main\utils\utils.h
 * Path: g:\espidf_workspace\idf_S3_T-Watch\main\utils
 * Created Date: Friday, June 20th 2025, 12:21:34 pm
 * Author: sss
 * 
 * Copyright (c) 2025 Your Company
 */
#pragma once

class Util_nvs {
private:
    Util_nvs();
    ~Util_nvs(){};
    Util_nvs(const Util_nvs&) = delete;
    Util_nvs& operator=(const Util_nvs&) = delete;

public:
    static Util_nvs& get_instance() {
        static Util_nvs instance;
        return instance;
    }
    
    void save_string(const char* key, const char* value);
    const char* read_string(const char* key);
};


void to_lower(char *str);// defined in utils.cc 字符串转小写
void to_upper(char *str);// defined in utils.cc 字符串转大写